﻿<%@ Page CodeBehind="Contact.aspx.cs" Inherits="BwanaBank.BankOnline.WinUI.Window.Contact"
    MasterPageFile="~/Default.master" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>Formulaire de contact</legend>
        <p class="register_title">
            Vous avez des questions, des remarques sur nos produits financiers, nos services
            ou notre site ? Remplissez ce formulaire et nos équipes s'efforceront de vous répondre
            au plus vite.
        </p>
        <div class="space">
        </div>
        <asp:ValidationSummary CssClass="failureNotification" runat="server" ValidationGroup="LoginUserValidationGroup" />
        <fieldset>
            <legend>Informations personnelles</legend>
            <p class="register_civilite">
                Civilité :
                <asp:RadioButton GroupName="civilite" ID="RadioButton1" runat="server" Text="Monsieur" />
                <asp:RadioButton GroupName="civilite" ID="RadioButton2" runat="server" Text="Madame" />
            </p>
            <p>
                <asp:TextBox CssClass="register_input" ID="UserName" MaxLength="20" placeholder="Nom"
                    runat="server" />
                <asp:RequiredFieldValidator ControlToValidate="UserName" CssClass="hidden" ErrorMessage="Vous devez renseigner votre nom."
                    runat="server" ValidationGroup="LoginUserValidationGroup"></asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:TextBox CssClass="register_input" ID="Password" MaxLength="20" placeholder="Prénom"
                    runat="server" />
                <asp:RequiredFieldValidator ControlToValidate="Password" CssClass="hidden" ErrorMessage="Vous devez renseigner votre prénom."
                    runat="server" ValidationGroup="LoginUserValidationGroup"></asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:TextBox CssClass="register_input" ID="YearOfBirth" MaxLength="10" placeholder="Date de naissance (JJ/MM/YYYY)"
                    runat="server" />
                <asp:RequiredFieldValidator ControlToValidate="YearOfBirth" CssClass="hidden" ErrorMessage="Vous devez renseigner votre date de naissance."
                    runat="server" ValidationGroup="LoginUserValidationGroup"></asp:RequiredFieldValidator>
            </p>
        </fieldset>
        <div class="space">
        </div>
        <fieldset>
            <legend>Localisation</legend>
            <p>
                <asp:TextBox CssClass="register_input" ID="Address" MaxLength="20" placeholder="Adresse"
                    runat="server" />
                <asp:RequiredFieldValidator ControlToValidate="Address" CssClass="hidden" ErrorMessage="Vous devez renseigner votre adresse."
                    runat="server" ValidationGroup="LoginUserValidationGroup"></asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:TextBox CssClass="register_input" ID="Country" MaxLength="20" placeholder="Ville"
                    runat="server" />
                <asp:RequiredFieldValidator ControlToValidate="Country" CssClass="hidden" ErrorMessage="Vous devez renseigner votre ville."
                    runat="server" ValidationGroup="LoginUserValidationGroup"></asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:TextBox CssClass="register_input" ID="zipcode" MaxLength="20" placeholder="Code postal"
                    runat="server" />
                <asp:RequiredFieldValidator ControlToValidate="zipcode" CssClass="hidden" ErrorMessage="Vous devez renseigner votre code postal."
                    runat="server" ValidationGroup="LoginUserValidationGroup"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ControlToValidate="zipcode" CssClass="hidden" ErrorMessage="Code postal non valide."
                    runat="server" ValidationExpression="\d{5}" ValidationGroup="LoginUserValidationGroup"></asp:RegularExpressionValidator>
            </p>
        </fieldset>
        <div class="space">
        </div>
        <fieldset>
            <legend>Message</legend>
            <p>
                <asp:TextBox CssClass="register_input" ID="Message" runat="server" TextMode="MultiLine" />
                <asp:RequiredFieldValidator ControlToValidate="Message" CssClass="hidden" ErrorMessage="Vous devez écrire un message."
                    runat="server" ValidationGroup="LoginUserValidationGroup"></asp:RequiredFieldValidator>
            </p>
        </fieldset>
    </fieldset>
    <p class="submitButton">
        <asp:Button CssClass="loginEntry" OnClick="Button_Contact" runat="server" Text="Envoyer le message"
            ValidationGroup="LoginUserValidationGroup" />
    </p>
</asp:Content>
